package com.dzj.fishingcommunity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dzj.fishingcommunity.model.LikeRecord;

public interface LikeRecordService extends IService<LikeRecord> {

    /**
     * 根据帖子id增加点赞数
     * @param postId
     * @return
     */
    Boolean addCountByPostIdAndUserId(Integer postId);

    /**
     * 根据帖子id取消点赞
     * @param postId
     */
    Boolean cancelLike(Integer postId);
}